package com.momo.mapper.mapper;

import com.momo.mapper.dataobject.TestDO;
import org.apache.ibatis.annotations.Param;

/**
 * 由于需要对分页支持,请直接使用对应的DAO类
 * 注意:此结构有系统生成,禁止手工修改,以免被覆盖,请通过dalgen生成
 * The Table TEST.
 * TEST
 */
public interface TestDOMapper{

    /**
     * desc:插入表:TEST.<br/>
     * descSql =  SELECT LAST_INSERT_ID() INSERT INTO TEST( )VALUES( )
     * @param entity entity
     * @return int
     */
    int insert(TestDO entity);
    /**
     * desc:更新表:TEST.<br/>
     * descSql =  UPDATE TEST SET WHERE ID = #{id,jdbcType=VARCHAR}
     * @param entity entity
     * @return int
     */
    int update(TestDO entity);
    /**
     * desc:根据主键删除数据:TEST.<br/>
     * descSql =  DELETE FROM TEST WHERE ID = #{id,jdbcType=VARCHAR}
     * @param id id
     * @return int
     */
    int deleteById(String id);
    /**
     * desc:根据主键获取数据:TEST.<br/>
     * descSql =  SELECT * FROM TEST WHERE ID = #{id,jdbcType=VARCHAR}
     * @param id id
     * @return TestDO
     */
    TestDO getById(String id);
}
